package cc.ls51.modules.SysMenu.service.impl;


import cc.ls51.common.PageUtils;
import cc.ls51.form.SysRoleListForm;
import cc.ls51.modules.SysMenu.entity.SysMenu;
import cc.ls51.modules.SysMenu.mapper.SysMenuMapper;
import cc.ls51.modules.SysMenu.service.ISysMenuService;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author llf
 * @since 2019-09-02
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

    @Autowired
    SysMenuMapper sysMenuMapper;
    @Override
    public PageUtils<SysMenu> getPage(SysRoleListForm form) {
        return null;
    }

    @Override
    public List<SysMenu> getList() {
        List<SysMenu> list = sysMenuMapper.selectList(Wrappers.query());
        return list;
    }
}
